package com.parseword1;

import java.util.HashMap;

public class WordNode extends HashMap<Character,WordNode>{
	
	private static final long serialVersionUID = 1L;
	public final char word;
	public WordHandler wordHandler;
	
	public WordNode(char word) {
		this.word = word;
	}
	@Override
	public int hashCode() {
		return ((Character)word).hashCode();
	}
	@Override
	public boolean equals(Object o) {
		
		return o.equals(word);
	}
	@Override
	public String toString() {
		
		return String.valueOf(word)+"="+super.values().toString();
	}
	public WordNode(char word, WordHandler wordHandler) {
		super();
		this.word = word;
		this.wordHandler = wordHandler;
	}
	
	
}
